home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Libraries / stdwin / Conf / putobjs < prev    next >
Encoding:
Text File  |  1990-08-07  |  310 b   |  26 lines  |  [TEXT/????]

  1. #! /bin/sh
  2. #
  3. # Construct OBJS macro definition
  4. # usage: putobjs macroname sourcefile ...
  5.  
  6. # Find out which echo we have, sigh
  7. case `echo -n` in
  8. -n)    N=; C='\c';;
  9. *)    N=-n; C=;;
  10. esac
  11.  
  12. echo
  13.  
  14. echo $N "$1=$C"
  15.  
  16. shift
  17.  
  18. for file
  19. do
  20.     case $file in
  21.     *.c)    echo " \\"; echo $N "    `basename $file .c`.o$C";;
  22.     esac
  23. done
  24.  
  25. echo
  26.